str = input("请输入字符串：")
cnt_dict = {}
for c in str:
    if c in cnt_dict:
        cnt_dict[c] = cnt_dict[c] + 1
    else:
        cnt_dict[c] = 1
print(cnt_dict)